<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <h6>1.插值</h6>
    <p>{{content}}</p>
    <p>{{content.toUpperCase()}}</p>

    <h5>2.指令一：强制数据绑定</h5>
     <a href="url" target="_blank">学习Vue</a>
     <a v-bind:href="url" target="_blank">学习学习</a>
     <a :href="url">去学习</a>
    <h4>3.指令二：绑定事件监听</h4>
     <button v-on:click='handleClick'>test1</button>
     <button @click="handleClick">test2</button>
  </div>
  <script src="../js/vue.js"></script>
  <script>
    new Vue({
      el:'#app', 
      data:{
        content:'I Will Back',
        url:'http://www.atguigu.com'
      },
      methods:{
        handleClick(event){
          alert(event.target.innerHTML);
        }
      }
    })
  </script>
</body>
</html>